import { http } from '@/utils/http/axios';

export function pageShutdownList(data = {}) {
  return http.request({
    url: '/admin/wip/shutdownList/page',
    method: 'post',
    data,
  });
}

export function updateShutdownList(data = {}) {
  return http.request({
    url: '/admin/wip/shutdownList/update',
    method: 'post',
    data,
  });
}

export function delShutdownList(data = {}) {
  return http.request({
    url: '/admin/wip/shutdownList/delete',
    method: 'post',
    data,
  });
}

export function addShutdownList(data = {}) {
  return http.request({
    url: '/admin/wip/shutdownList/add',
    method: 'post',
    data,
  });
}

export function getShutdownListByOrderCode(data = {}) {
  return http.request({
    url: '/admin/wip/shutdownList/byOrderCode',
    method: 'post',
    data,
  });
}

export function exportShutdownList(data) {
  return http.request({
    url: '/admin/wip/shutdownList/export',
    method: 'post',
    data,
    responseType: 'blob',
  });
}
